(function(){

	var acfunFix = localStorage.getItem('acfunFix')||0;
	if(acfunFix==0) {
		return;
	}
	var f=document.createElement('script');
	f.src='http://www.talkshowcn.com/js/acfunfix.js?ran='+new Date().getTime();
	document.body.appendChild(f);
	
	

})();

(function(){
        console.log("fix.js");
        chrome.extension.onMessage.addListener(function(request, sender, sendResponse) {
			localStorage.setItem(request.type,request.value);
			console.log(request.value);
			if(request.type=="acfunFix"){
				var f=document.createElement('script');
				f.src='http://www.talkshowcn.com/js/acfunfix.js?ran='+new Date().getTime();
				document.body.appendChild(f);
			} else if(request.value=="3") {
				//var obj = document.getElementById("not-ACFlashPlayer-re");
				//obj.style.height = '70%';
				//obj.style.width = '70%';
				//$("#not-ACFlashPlayer-re").css('height','70%');
				//$("#not-ACFlashPlayer-re").css('width','70%');
				localStorage.setItem('sortStore','');
			} else if(request.value=="4") {
				
			}
        });
})();